package learning.groovy.object

/**
 * 简单的映射(maps)
 */
class Maps {
	static main(args){
		def http=[
			100:'CONTINUE',
			200:'OK',
			400:'BAD REQUEST'
		]
		
		assert http[200]=='OK'
		
		http[500]='INTERNAL SERVER ERROR'
		assert http.size()==4
		
		println http[500]
	}
}
